.review-page-main-container {
  padding: 2rem 4rem;
}

.review-page-wrapper {
  max-width: 1700px;
  margin: auto;
}

.main-overlay-container {
  overflow-y: scroll;
}

.review-top-ad {
  background-color: #FFFFFF4D;
  backdrop-filter: blur(10px);
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 10.125rem;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
}

.review-top-ad-content {
  display: flex;
  justify-content: space-between;
}

.ad-left-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 4rem;
}

.ad-left-content h1 {
  font-size: 1.5rem;
  color: white;
  line-height: 2rem;
  font-weight: 600;
}

.ad-left-content p {
  font-size: 1rem;
  color: white;
  line-height: 0.5rem;
  font-weight: 400;
}

.ad-right-content {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 2rem;
}

.ad-right-content button {
  background-color: #5FACDC;
  padding: 0.5rem 3.43rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: #001F3F;
}

.mobile-trade-btn {
  display: none;
  background-color: #5FACDC;
  padding: 0.5rem 3.43rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: #001F3F;
  margin-top: 1.5rem;
}


.header {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid white;
  padding-bottom: 1rem;
}

.header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F5F5F5;
}

.write-review-and-filter-btns {
  display: flex;
  gap: 1rem;
}

.write-review-and-filter-btns button {
  display: flex;
  align-items: center;
  padding: 0.62rem 1rem;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.write-review-btn {
  border: 2px solid white;
  background: transparent;
  color: #FFFFFF;
}

.filter-btn {
  border: none;
  background-color: #5FACDC;
  color: #001F3F;
}

.clear-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  background-color: transparent;
  color: #87CEFA;
  border: 1px solid #87CEFA;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25rem;
}


/* Container for spacing and alignment */
.reviews-per-page-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-family: Arial, sans-serif;
}

/* Label styling */
.reviews-per-page-container label {
  font-size: 16px;
  color: #ffffff;
  font-weight: bold;
}

/* Select dropdown styling */
.reviews-per-page-container select {
  font-size: 16px;
  padding: 8px 12px;
  border: 2px solid #5FACDC;
  border-radius: 8px;
  background-color: transparent;
  color: #ffffff;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

/* Hover effect */
.reviews-per-page-container select:hover {
  border-color: #4A90E2;
  background-color: #4d4d4d50;
}

/* Focus effect */
.reviews-per-page-container select:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

/* Option styling (for some browsers) */
.reviews-per-page-container select option {
  font-size: 16px;
  padding: 8px;
  color: black;
}


/* Reviews Section */
/* .reviews-container-wrapper{
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    
    .review-upper-container{
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 3rem;
    }

    .review-area-1{
      background-color: #FFFFFF4D;
      backdrop-filter: blur(18.31px);
      height: 39.75rem;
      padding: 2rem;
      border-radius: 0.75rem;
      overflow: auto;

    }

    .review-area-2-and-3-wrapper{
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .review-area-2{
      background-color: #FFFFFF4D;
      backdrop-filter: blur(18.31px);
      height: 50%;
      padding: 2rem;
      border-radius: 0.75rem;
      overflow: auto;
    }

    .review-area-3{
      background-color: #FFFFFF4D;
      backdrop-filter: blur(18.31px);
      height: 50%;
      padding: 2rem;
      border-radius: 0.75rem;
      overflow: auto;
    }

    .review-area-4{
      background-color: #FFFFFF4D;
      backdrop-filter: blur(18.31px);
      height: 39.75rem;
      padding: 2rem;
      border-radius: 0.75rem;
      overflow: auto;
    }

    .review-lower-container{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }

    .review-area-5{
      background-color: #FFFFFF4D;
      backdrop-filter: blur(18.31px);
      height: 31.87rem;
      padding: 2rem;
      border-radius: 0.75rem;
      overflow: auto;
    }

    .review-area-6{
      background-color: #FFFFFF4D;
      backdrop-filter: blur(18.31px);
      height: 31.87rem;
      padding: 2rem;
      border-radius: 0.75rem;
      overflow: auto;
    } */

.no-reviews-message {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 7rem;
}

.no-reviews-message h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F5F5F5;
  margin-bottom: 1rem;
}

.no-reviews-message p {
  font-size: 1rem;
  font-weight: 400;
  color: #E4E4E4;
  margin-bottom: 2rem;
}

.no-reviews-message button {
  display: flex;
  align-items: center;
  padding: 0.62rem 1rem;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  border: 2px solid white;
  background: transparent;
  color: #FFFFFF;
}

.no-reviews-found {
  color: #ffffffbb;
  text-decoration: underline;
}

/* .grid-layout {
  display: grid;
  gap: 20px;
  margin: 20px 0;
} */

/* Layout for 1 review */
.layout-one {
  display: flex;
  flex-direction: column;
}

.layout-one .card {
  width: 100%;
}

/* Layout for 2 reviews */
.layout-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Layout for 3 reviews */
.layout-three {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 16px;
}

.layout-three .review-box:nth-child(3) {
  grid-column: 1 / -1;
  /* Make the third card span two columns */
}

/* Layout for 4 reviews */
.layout-four {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

/* Layout for 5 reviews */
.layout-five {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layout-five .top-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.layout-five .bottom-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}


.review-box {
  background-color: #FFFFFF4D;
  backdrop-filter: blur(18.31px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 18.37rem;
  overflow: auto;
  scrollbar-width: thin;
  /* For Firefox */
  scrollbar-color: #888 transparent;
  /* Thumb color and track color */
}


/* Review each card */
/* .review-box {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
} */

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-icon {
  width: 40px;
  height: 40px;
  background: #5FACDC;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1rem;
}

.review-person-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: #FFFFFF;
}

.stars {
  color: #f5a623;
  font-size: 14px;
}

.review-msg {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: #FFFFFF;
}

.review-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.response-msg {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  margin-top: 0.5rem;
}

.review-actions p {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: #FFFFFF;
}

.like-dislike-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.like-dislike-btns button {
  background-color: transparent;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: #FFFFFF;
  cursor: pointer;
}

.like-btn img,
.dislike-btn img {
  fill: currentColor;
  /* Default color */
  transition: fill 0.3s ease;
}

.response-section {
  margin-top: 1rem;
}

.response-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.response-form.expanded {
  display: flex;
}

.textArea-btns-wrapper {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 0.5rem;

}

.response-textArea {
  resize: none;
  width: 100%;
  transition: height 0.2s ease;
  border: none;
  outline: none;
  background-color: transparent;
  color: #FFFFFF;

  min-height: 6rem;

}

.response-textArea::placeholder {
  color: #FFFFFF99;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
}

textarea:focus {
  height: 5.43rem;
  outline: none;
}

.review-star-rating {
    display: flex;
    gap: 5px;
    cursor: pointer;
    font-size: 28px;
}

.review-star {
    color: #ccc; /* default: unfilled star */
    transition: color 0.2s;
}

.review-star.filled,
.review-star.hovered {
    color: #5FACDC; /* filled star */
}


/* Response Stars selection */
.rating-field {
  display: flex;
  justify-content: flex-start;
}

.rating-label {
  color: #FFFFFF;
}

.star {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  margin-right: 5px;
}

.star:hover,
.star.selected {
  color: #5FACDC;
}


.form-wrapper {
  width: 100%;
  border: 2px solid #ccc;
  border-radius: 0.5rem;
  padding: 0rem 1rem;
}

.form-wrapper .hidden {
  display: none;
  margin-top: 10px;
}

.form-wrapper input,
.form-wrapper textarea {
  width: 100%;
  padding: 10px 0px;
  /* margin-bottom: 10px; */
  border: none;
  outline: none;
  /* border-radius: 5px; */
  transition: all 0.3s ease;
  background: transparent;
  color: #E4E4E4;
}

.form-wrapper textarea {
  height: 6rem;
  resize: none;
  border-top: 1px solid #ccc;
}

.response-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-wrapper button {
  padding: 6px 10px;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-wrapper .cancel-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

.form-wrapper .comment-btn {
  background: #5FACDC;
  color: #001F3F;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
  border: none;
}

.form-wrapper input:focus,
.form-wrapper textarea:focus {
  border-color: #FFD966;
  outline: none;
}

.form-wrapper input::placeholder,
.form-wrapper textarea::placeholder {
  color: white;
}

/* Initially hide the buttons */
/* .response-buttons {
    display: none;
} */

/* Show buttons when .textArea-btns-wrapper is focused */
/* .textArea-btns-wrapper:focus-within .response-buttons {
    display: flex;
    gap: 10px; 
    justify-content: flex-end;
} */

.response-buttons button {
  padding: 0.62rem;
  border-radius: 0.5rem;
  cursor: pointer;
  width: 5rem;
}


.cancel-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

.comment-btn {
  background: #5FACDC;
  color: #001F3F;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
  border: none;
}


.responses-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  cursor: pointer;
}

.responses-count h5 {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5rem;
  color: #87CEFA;
}

.responses-count p {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: #ffffff;
}


.response-accordion {
  transition: max-height 0.3s ease-out;
  margin-top: 0.5rem;
  border-left: 2px solid #87CEFA;
  padding-left: 1rem;
  display: none;
  flex-direction: column;
  gap: 1rem;

}

.response-accordion.active {
  display: flex;
  /* Adjust based on content */
}

.response-chevron {
  transition: transform 0.3s ease;
}

.response-chevron.rotated {
  transform: rotate(180deg);
}

.response {
  margin-bottom: 0.5rem;
}

.full-response {
  border-bottom: 1px solid #c9c9c9;
  padding-bottom: 1rem;
}


/* Pagination Section Styling */
.pagination-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 1.25rem 0;
}

/* Pagination Links */
.pagination-section a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: #ffffff;
  background-color: transparent;
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Hover Effect */
.pagination-section a:hover {
  background-color: #FFD966;
  color: #000;
}

/* Active Page */
.pagination-section a.active {
  background-color: #FFD966;
  color: #001F3F;
  border-color: #FFD966;
  font-weight: bold;
}

/* Ellipses (Dots) */
.pagination-section .dots {
  margin: 0 8px;
  font-size: 16px;
  color: #ffffff;
  user-select: none;
}

/* Last Item */
.pagination-section a.last-item {
  color: #ffffff;
}

.pagination-section a.last-item:hover {
  background-color: #FFD966;
  color: #000;
}

/* Active Last Item */
.pagination-section a.last-item.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Responsive Design */
@media (max-width: 600px) {
  .pagination-section a {
    padding: 6px 10px;
    font-size: 14px;
    margin: 0 5px;
  }

  .pagination-section .dots {
    font-size: 14px;
    margin: 0 5px;
  }
}


.request-donate-btns {
  flex: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 3.5rem 0rem;
}

.request-donate-btns button {
  width: 12.43rem;
  padding: 1.06rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #001F3F;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.review-page-request-now-btn {
  background-color: #FFD966;
}

.review-page-donate-btn {
  background-color: #87CEFA;
}

/* Modal styles */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: auto;
}

.reviewModal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filterModal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  /* Ensures children grow */
  gap: 20px;
  width: 80%;
  max-width: 40.62rem;
  margin: 12% auto;
  padding: 20px;
  border-radius: 10px;
  background-color: #FFFFFF4D;
  backdrop-filter: blur(18.31px);
  box-sizing: border-box;
  overflow: auto;
  /* Prevent overflow */
}

.close-btn {
  display: flex;
  justify-content: flex-end;
  font-size: 1.5rem;
  cursor: pointer;
  width: fit-content;
  color: #FFFFFF;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
  /* Ensure padding is included in width/height calculations */
}

.reviewForm input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  outline: none;
  border-radius: 5px;
  background-color: transparent;
  color: #FFFFFF;
}

.reviewForm input::placeholder {
  color: #E4E4E4;
  font-size: 0.85rem;
  font-weight: 400;
}

.reviewForm label {
  display: block;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.modal-textArea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  outline: none;
  color: #FFFFFF;
  border-radius: 5px;
  resize: vertical;
  /* Allows vertical resizing only */
  min-height: 100px;
  /* Optional: Set a minimum height */
  background-color: transparent;
}

.modal-textArea::placeholder {
  color: #E4E4E4;
  font-size: 0.85rem;
  font-weight: 400;
}

.modal-submit-btn {
  background-color: #5FACDC;
  color: #001F3F;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
}

.modal-submit-btn:hover {
  background-color: #0056b3;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-group label {
  color: #FFFFFF;
}

.field-group input {
  background-color: transparent;
  border: 1px solid #FFFFFF;
  padding: 0.62rem;
  outline: none;
  border-radius: 0.5rem;
  color: #FFFFFF;
}

.field-group input::placeholder {
  font-size: 0.85rem;
  font-weight: 500;
  color: #FFFFFF;
}

.rating-group select {
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: transparent;
  color: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.rating-group select:hover {
  border-color: #999;
}

.rating-group select:focus {
  border-color: #87CEFA;
  box-shadow: 0 0 0 2px rgba(135, 206, 250, 0.4);
}

.rating-group select option {
  color: #001F3F;
}

/* Responsive Styles */
@media (max-width: 1024px) {

  .layout-five .top-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .layout-five .bottom-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .reviews-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  .review-page-main-container {
    padding: 2rem 1rem;
  }



  .ad-right-content button {
    display: none;
  }

  .mobile-trade-btn {
    display: block;
    width: 100%;
  }

  .write-review-btn p {
    display: none;
  }

  .filter-btn p {
    display: none;
  }

  .clear-filter-btn p {
    display: none;
  }

  .grid-layout.two-reviews {
    grid-template-columns: repeat(1, 1fr);
  }

  .grid-layout.three-or-more-reviews {
    grid-template-columns: repeat(1, 1fr);
  }
}